package cn.iocoder.yudao.module.bpm.controller.admin.taskinfo.vo;

import cn.iocoder.yudao.framework.common.validation.InEnum;
import cn.iocoder.yudao.module.bpm.enums.task.BpmProcessInstanceStatusEnum;
import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 流程任务信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BpmTaskInfoPageReqVO extends PageParam {

    @Schema(description = "项目id", example = "14824")
    private Long projectId;

    @Schema(description = "任务编号")
    private String code;

    @Schema(description = "任务名称", example = "赵六")
    private String name;

    @Schema(description = "任务类型：1-标准任务，2-流程任务", example = "1")
    private Integer type;

    @Schema(description = "表单类型", example = "1")
    private String formId;

    @Schema(description = "负责人id", example = "14824")
    private Long adminId;

    @Schema(description = "确认人id", example = "4669")
    private Long confirmId;

    @Schema(description = "关注人id", example = "31387")
    private Long attentionId;

    @Schema(description = "任务状态：", example = "1")
    private Integer status;

    @Schema(description = "计划开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] startTime;

    @Schema(description = "计划结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] endTime;

    @Schema(description = "标签id", example = "11629")
    private Long tagId;

    @Schema(description = "流程实例的编号", example = "25549")
    private String processInstanceId;

    @Schema(description = "父任务", example = "15602")
    private Long parentId;

    @Schema(description = "关联任务", example = "5575")
    private Long relationId;

    @Schema(description = "任务描述", example = "随便")
    private String description;

    @Schema(description = "任务排序,order值大的排序靠前")
    private Long orderRank;

    @Schema(description = "创建人")
    private Long creator;

    @Schema(description = "流程名称", example = "芋道")
    private String ProcessName;

    @Schema(description = "流程定义的编号", example = "2048")
    private String processDefinitionId;

    @Schema(description = "流程分类", example = "1")
    private String category;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "发起用户编号", example = "1024")
    private Long startUserId; // 注意，只有在【流程实例】菜单，才使用该参数

}